package d3_for_moive;

import java.util.Objects;

public class moive {
    private String name;
    private double score;
    private String actor;

    public moive(String name, double score, String actor) {
        this.name = name;
        this.score = score;
        this.actor = actor;
    }

    public moive() {
    }

    public String getActor() {
        return actor;
    }

    public void setActor(String actor) {
        this.actor = actor;
    }

    public double getScore() {
        return  score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        moive moive = (moive) o;
        return Double.compare(score, moive.score) == 0 && Objects.equals(name, moive.name) && Objects.equals(actor, moive.actor);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, score, actor);
    }
}
